
// Debug Functions and Varibles

var SystemStatus;
SystemStatus = true;

function DEBUGisJavascriptLoaded()
{
	var String;
	var StringA;
	var StringB;
	var StringC;
	var StringD;
	
	if (SystemStatus == true)
	{
		StringA = 'System Javascript Ready';
	} else {
		StringA = 'System Javascript Not Ready';
	}
	
	if (WindowActionStatus == true)
	{
		StringB = 'Window Actions Ready';
	} else {
		StringB = 'Window Actions Not Ready';
	}
	
	if (DashletsStatus == true)
	{
		StringC = 'Dashlets Ready';
	} else {
		StringC = 'Dashlets Not Ready';
	}
	
	if (SystemStatus == true && WindowActionStatus == true && DashletsStatus == true)
	{
		StringD = 'System is fully loaded';
	} else {
		StringD = 'Error in loading system!';
	}
	
	String = StringA + "\n" + StringB + "\n" + StringC + "\n\n" + StringD;
	
	alert(String);
}

// Preforms an MD5 on all system components and check
// against the stored one. Only used on initial install
function DEBUGisSystemValid()
{
	var constant;
	var current;
	
	if (constant == current)
	{
		// install sucess
	} else {
		// errors may have occured
		alert('One or more errors have been detected.\nWhile the check just run is not proof that you system will fail, please keep this warning in mind if you encounter problems.\nOur repair tool can be found on our website at http://www.
}

// Checks to see if core has been modified. Passes along
// information to updater. If core has been modifyed the
// user is prompted to continue at their own risk. (MD5)
function DEBUGisCoreAccurate()
{
	var constant;
	var current;

	if (constant == current)
	{
		// core is ok
	} else {
		// core is not same
	};
}